package com.ryan.security.core.validate.code;

import lombok.Data;

import java.awt.image.BufferedImage;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Created by kaimin on 1/1/2019.
 * time : 23:47
 */
@Data
public class ImageCode extends ValidatorCode implements Serializable{
    private BufferedImage bufferedImage;
//    private String code;
//    private LocalDateTime expireTime;

    public ImageCode(BufferedImage bufferedImage, String code, int expireIn) {
       super(code,expireIn);
        this.bufferedImage = bufferedImage;

    }

    public ImageCode(String code, LocalDateTime expireTime, BufferedImage bufferedImage) {
        super(code, expireTime);
        this.bufferedImage = bufferedImage;
    }
}
